/* 推荐放在 custom/css/markdown-toolbar.css 或 <style> 标签中 */
/* MarkdownToolbar 核心样式 */
.toolbar {
    display: flex;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
    border-radius: 8px;
    padding: 4px 8px;
    gap: 2px;
    z-index: 2;
}

.toolbar button {
    position: relative;
    padding: 4px 8px;
    border: none;
    background: none;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    color: #4b5563;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
    outline: none;
    min-width: 32px;
    min-height: 32px;
}

.toolbar button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.toolbar button.active,
.toolbar button:active {
    background: #e3f2fd;
    color: #1976d2;
}

.toolbar button:hover:not(:disabled) {
    background: #f3f4f6;
    color: #1976d2;
}

.toolbar-divider {
    width: 1px;
    background: #e5e7eb;
    margin: 4px 6px;
    align-self: stretch;
    border-radius: 1px;
}

@font-face {
  font-family: 'Material Icons';
  font-style: normal;
  font-weight: 400;
  src: url(https://fonts.gstatic.com/s/materialicons/v143/flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2) format('woff2');
}

/* Material Icons 字体支持（如未全局引入） */
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');

.toolbar .material-icons {
    font-family: 'Material Icons';
    font-size: 20px;
    font-weight: normal;
    line-height: 1;
    vertical-align: middle;
    user-select: none;
    pointer-events: none;
}